package com.spsy.order.domain;

import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spsy.common.core.annotation.Excel;
import com.spsy.common.core.web.domain.BaseEntity;

/**
 * 订单操作日志对象 order_log
 * 
 * @author ruoyi
 * @date 2025-05-06
 */
@Builder
public class OrderLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String operationType;

    /** 操作描述 */
    @Excel(name = "操作描述")
    private String operationDesc;

    /** 操作结果 */
    @Excel(name = "操作结果")
    private String operationResult;

    /** 操作IP */
    @Excel(name = "操作IP")
    private String ip;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    public void setOperationType(String operationType) 
    {
        this.operationType = operationType;
    }

    public String getOperationType() 
    {
        return operationType;
    }

    public void setOperationDesc(String operationDesc) 
    {
        this.operationDesc = operationDesc;
    }

    public String getOperationDesc() 
    {
        return operationDesc;
    }

    public void setOperationResult(String operationResult) 
    {
        this.operationResult = operationResult;
    }

    public String getOperationResult() 
    {
        return operationResult;
    }

    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("operator", getOperator())
            .append("operationType", getOperationType())
            .append("operationDesc", getOperationDesc())
            .append("operationResult", getOperationResult())
            .append("ip", getIp())
            .append("createTime", getCreateTime())
            .toString();
    }
}
